package com.haofengsoft.scce.ui.quotations;

import java.util.ArrayList;
import java.util.List;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.GridView;

import com.haofengsoft.scce.R;
import com.haofengsoft.scce.adapter.quotations.ShangHaiAdapter;
import com.haofengsoft.scce.adapter.quotations.ShangHaiModel;
import com.haofengsoft.scce.ui.fragment.BaseFragment;

public class BeiJingFragment extends BaseFragment {

	private GridView quotationsBeiJingGv;

	public BeiJingFragment() {
		// 添加访问后台需要的参数
	}

	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.quotations_beijing, container, false);
		view.setOnTouchListener(new DontSpillOnTouchListener());

		quotationsBeiJingGv = (GridView) view.findViewById(R.id.quotations_beijing_gv);

		List<ShangHaiModel> beiJingModelList = new ArrayList<ShangHaiModel>();

		beiJingModelList.add(new ShangHaiModel("版张版票", "+1.44%", true, "三版凹凸小全套", "7990", "+9.45%"));
		beiJingModelList.add(new ShangHaiModel("小本票", "+3.78%", true, "长号贰分", "1798", "+6.54%"));
		beiJingModelList.add(new ShangHaiModel("型张全张", "-1.48%", false, "大雪无痕", "7990", "+0.44%"));
		beiJingModelList.add(new ShangHaiModel("邮资封片", "-2.24%", false, "三版凹凸小全套", "7990", "+0.11%"));
		beiJingModelList.add(new ShangHaiModel("港澳邮票", "+6.87%", true, "三版凹凸小全套", "7990", "+8.44%"));
		beiJingModelList.add(new ShangHaiModel("金银币", "+5.32%", true, "三版凹凸小全套", "7990", "+6.80%"));

		quotationsBeiJingGv.setAdapter(new ShangHaiAdapter(getActivity(), beiJingModelList));

		return view;
	}

	@Override
	protected void lazyLoad() {

	}
}
